package tech.aistar.day06.design.dp.version02;

/**
 * 本类用来演示: 中介
 *
 * 人 -> 中介 -> N个房源的
 *
 * @author: success
 * @date: 2021/3/15 4:27 下午
 */
public class Middler {
    //中介负责维护房源
    private HighLevelHouse highLevelHouse;

    private VillaHouse villaHouse;

    public void setHighLevelHouse(HighLevelHouse highLevelHouse) {
        this.highLevelHouse = highLevelHouse;
    }

    public void setVillaHouse(VillaHouse villaHouse) {
        this.villaHouse = villaHouse;
    }

    public void findHigh(String name){
        highLevelHouse.desc(name);
    }

    public void findVilla(String name){
        villaHouse.desc(name);
    }
}
